x86/paging: use clear_guest() for zero-filling guest buffers
authorJan Beulich <jbeulich@suse.com>
Mon, 13 Feb 2012 12:09:02 +0000 (13:09 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 13 Feb 2012 12:09:02 +0000 (13:09 +0100)
commit9ea8199eb51d465b24ecc427475e5d8abe71a597
treec5303d3c770dbd5a3fd0989e24d50d031892a278
parentc06bde41af2f41500a2b29a11b7cca0fb92af21b
x86/paging: use clear_guest() for zero-filling guest buffers

While static arrays of all zeros may be tolerable (but are simply
inefficient now that we have the necessary infrastructure), using on-
stack arrays for this purpose (particularly when their size doesn't
have an upper limit enforced) is calling for eventual problems (even
if the code can be reached via administrative interfaces only).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/paging.c